<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link rel="stylesheet" type="text/css" href="/skin/css/amazeui.min1.css" />
<link href="/user/css/style.css" rel="stylesheet" type="text/css" />
<script src="/user/js/jquery.js"></script>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>修改密码-会员中心</title>
</head>
<body class="body">
<div class="main">
<div class="gmima">
	<header id="header">
	<section class="head-b head-b1">
		<span class="u-left"><a href="javascript:history.go(-1);" class="back"><img src="/skin/img/back.png"/></a></span>
		<h1 id="t0">修改密码</h1>
		<div class="u-right" href="#">
			<a href="/" class="hSearch right"><img src="/skin/img/i_home.png"/></a>
		</div>
	</section>
</header>

	<form class="pass">
		<div class="z-list">
			<b>会员帐号</b><span id="userid">{$info[uname]}</span>
		</div>
		<div class="z-list">
			<b>原密码</b><input name="t0" id="User_login_pass" type="password" placeholder="请输入原密码">
		</div>
		<div class="z-list">
			<b>新密码</b><input name="t1" id="User_login_pass_1" type="password" placeholder="请输入新密码">
		</div>
		<div class="z-list">
			<b>确认新密码</b><input name="t2" id="User_login_pass_2" type="password" placeholder="请再次输入">
		</div>
		<button class="xtj" type="button" onclick="getpass();">确认修改</button>
	</form>
	<script>
		function getpass(){				
					$.ajax({
					type:"post",
					dataType:"json",
					url:"/Moudelu.php?m=m&a=getpass",
					data:$(".pass").serialize(),
					success:function(d){
						if(d[0]==2){
							window.location.href='login.php';return false;
						}
						if(d[0]==0){
							alert(d[1]);
							//window.location.href='getpass.php';
						}
						else{
							alert(d[1]);
							window.location.href='/user/';
						}
					}
				});						
			}
	</script>
</div>
</div>
<?php include("foot.php");?>
</body>
</html>